package oop;

/**
 * @classname:People
 * @description:
 * @author: Mr.Z
 * @date: 2020/11/30 17:53
 * @version: 0.1
 * @since:1.8
 */
public class People {
    public int id ;

    public People(int id) {
        this.id = id;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public static void main(String[] args) {
        People po = new People(1);
        System.out.println(po.getId());
        po.setId(po.getId()+2);
        System.out.println(po.getId());
    }
}
